package com.wenwan.manage.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wenwan.manage.service.GiveGetVolumeReadingService;

import javax.annotation.Resource;

/**
 * 供求文章阅读量
 * 
 * @author Admin
 *
 */
@Controller
@RequestMapping(value = "/give/get/volume/reading")
public class GiveGetVolumeReadingController {

	@Autowired
	private GiveGetVolumeReadingService giveGetVolumeReadingService;

	@ResponseBody
	@RequestMapping(value = "/create", method = { RequestMethod.POST })
	public Map<String, Object> create(@RequestParam(required = true) String giveGetId,
			@RequestParam(required = true) String userId) {
		return giveGetVolumeReadingService.create(giveGetId, userId);
	}

}
